<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>类选择器</title>
		<link rel="stylesheet" type="text/css" href="css/txt.css"/>
		<script src="js/jquery.js"></script>
	</head>
	<body>
		<div class="temp">我来也</div>
		<span class="temp">我再测试</span>
	</body>
	
	<script type="text/javascript">
		
		$(function(){
			$(".temp").attr("class","txt");			
		});
		
	</script>
	
</html>
